package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/info")
public class InfoController {

    @RequestMapping("/info")
    public String show(Model model) {
        model.addAttribute("id", 001);
        model.addAttribute("name", "Hello");
        model.addAttribute("gender","F");
        model.addAttribute("address", "nonono");
        model.addAttribute("phone","13838537396");
        return "info";
    }
}
